{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_jypx/template/public/ygcsslist.css">
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
   <!--  {loop $cate $res}
     <li {if $type==$res['id']} class="active" {/if}><a href="{php echo $this->createWebUrl('unit',array('type'=>cate,'id' => $res['id']))}">{$res['name']}</a></li> -->
    
   <!--  <li   {if $type=='wait'} class="active" {/if}><a href="{php echo $this->createWebUrl('unit',array('type'=>wait,'state'=>1));}">待审核</a></li>
     <li   {if $type=='ok'} class="active" {/if}><a href="{php echo $this->createWebUrl('unit',array('type'=>ok,'state'=>2));}">已确认</a></li>
     <li   {if $type=='no'} class="active" {/if}><a href="{php echo $this->createWebUrl('unit',array('type'=>no,'state'=>3));}">已拒绝</a></li> -->
     <!-- {/loop} -->
      <li class="active"><a href="{php echo $this->createWebUrl('unit')}">课节列表</a></li>
    <li><a href="{php echo $this->createWebUrl('addunit')}">添加课节</a></li>
</ul>
<div class="main">
    <div class="panel panel-default">
        <div class="panel-body">
          <form action="" method="get" class="col-md-4">
            <input type="hidden" name="c" value="site" />
            <input type="hidden" name="a" value="entry" />
            <input type="hidden" name="m" value="zh_jypx" />
            <input type="hidden" name="do" value="unit" />
              <div class="input-group" style="width: 300px">
                  <input type="text" name="keywords" class="form-control" placeholder="请输入校区/学级/课程/课节">
                  <span class="input-group-btn">
                      <input type="submit" class="btn btn-default" name="submit" value="查找"/>
                  </span>
              </div>
              <input type="hidden" name="token" value="{$_W['token']}"/>
             <input type="hidden" name="type" value="all"/>
          </form>
        </div>
    </div>
    <div class="panel panel-default">

        <!-- <div class="panel-heading">
            课节管理
        </div> -->
        <div class="panel-body" style="padding: 0px 15px;">
            <div class="row">
                <table class="yg5_tabel col-md-12">
                    <tr class="yg5_tr1">
                        <!-- <th class="col-md-1">排序</th> -->
                        <th class="store_td1 col-md-2">校区名称</th>
                        <th class="col-md-1">学级名称</th>
                        <th class="col-md-2">课程名称</th>
                        <th class="col-md-1">课节名称</th>
                        <!-- <th class="col-md-1">课节数字名称</th> -->
                        <th class="col-md-1">创建时间</th>
                        <th class="col-md-2">操作</th>
                    </tr>
                    {loop $list  $row}
                   <tr class="yg5_tr2">
                    <!-- 批量部分 -->
                       <!--  <td>
                            <input type="checkbox" name="test" value="{$row['id']}">
                        </td> -->
                    <!-- 批量部分 -->
                        <!-- <td>{$row['sort']}</td> -->
                        <td>{$row['cate_name']}</td>
                        <td>{$row['course_name']}</td>
                        <td>{$row['name']}</td>
                        <td>{$row['unit_name']}</td>
                        <!-- <td>{$row['num']}</td> -->
                        <td>{$row['create_time']}</td>
                        <!-- {if $row['state']==1}
                        <td>
                            <span class="label storered">待审核</span>
                        </td >
                        {elseif $row['state']==2}
                        <td >
                            <span class="label storeblue">已通过</span>
                        </td>
                        {elseif $row['state']==3}
                        <td>
                           <span class="label storegrey">已拒绝</span>
                       </td>
                       {/if}  -->
                       <td>
                        <!--  {if $row['state']==1}
                           <a href="{php echo $this->createWebUrl('unit',array('op'=>'tg','id'=>$row['id'],'page'=>$_GPC['page']));}"><button class="btn ygyouhui2 btn-xs">通过</button></a>
                           <a href="{php echo $this->createWebUrl('unit',array('op'=>'jj','id'=>$row['id']));}"><button class="btn ygshouqian2 btn-xs">拒绝</button></a>
                           {/if} -->
                           <a href="{php echo $this->createWebUrl('addunit', array('id' => $row['id']))}" class="storespan btn btn-xs">
                                <span class="fa fa-pencil"></span>
                                <span class="bianji">编辑<span class="arrowdown"></span>
                                </span>
                            
                            </a>
                          <a href="" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
                              <span class="fa fa-trash-o"></span>
                              <span class="bianji">删除
                                  <span class="arrowdown"></span>
                              </span>
                          </a>
                        <!-- <td> -->
                         
                           <!-- <a href="{php echo $this->createWebUrl('unitlist',array('id'=>$row['id']));}"><button class="btn btn-success btn-xs">查看</button></a> -->
                           
                           <!-- <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">删</button> -->
                       <!-- </td> -->
                        <!-- <td> -->
                          <!--<a href="javascript:void(0);" data-toggle="modal" data-target="#myModalb{$row['id']}"><span class="btn btn-xs ygyouhui2">充值余额</span> </a>-->
                            <!-- <a href="{php echo $this->createWebUrl('mypublished',array('id'=>$row['id']));}">
                                <span class="btn btn-xs ygyouhui2">我发布的</span>
                        </a> -->
                            <a href="{php echo $this->createWebUrl('task',array('id'=>$row['id']));}">
                                <span class="btn btn-xs ygyouhui2">添加作业</span>
                            </a>
                            <!-- <a href="{php echo $this->createWebUrl('myscore',array('id'=>$row['id']));}">
                                <span class="btn btn-xs ygyouhui2">我的信誉</span>
                            </a> -->
                          <!-- <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">删除</button>                             -->
                        <!-- </td>                    -->
                    </tr>
                    <!-- <div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
                        </div>
                        <div class="modal-body" style="font-size: 20px">
                            确定删除么？
                        </div>
                        <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <a href="{php echo $this->createWebUrl('slide', array('op' => 'delete', 'id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
                        </div>
                    </div>
                </div>
            </div> -->
            <div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
                        </div>
                        <div class="modal-body" style="font-size: 20px">
                            确定删除么？
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <a href="{php echo $this->createWebUrl('unit', array('op' => 'delete', 'id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- <div class="modal fade" id="myModal3{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
                        </div>
                        <div class="modal-body" style="font-size: 20px">
                            确定要启用么？
                        </div>
                        <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <a href="{php echo $this->createWebUrl('slide', array('status' => 1, 'op' => 'change', 'id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
                        </div>
                    </div>
                </div>
            </div> -->
                    {/loop}
                     {if empty($list)}
                      <tr class="yg5_tr2">
                      <td colspan="12">
                            暂无信息
                        </td>
                    </tr>
                    {/if}

            
                </table>
            </div>
        </form>
    </div>

</div>
</div>
<div class="text-right we7-margin-top">
   {$pager}
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-5").show();
        $("#yframe-5").addClass("wyactive");
    })
</script>